import React from 'react'
import { NavBar, Space, Toast } from 'antd-mobile'
import {useNavigate} from 'react-router-dom'
import styles from './css/Mynav.module.css'
function Mynav(props) {
    const nav=useNavigate()
  return (
    <div className={styles.nav}>
       <NavBar onBack={()=>nav(-1)}>{props.title}</NavBar>
    </div>
  )
}

export default Mynav
